package Regulation

import (
	"gitee.com/yebetter/lucky-draw/Conf"
	"gitee.com/yebetter/lucky-draw/Core/Error"
)

/**
规则接口
*/
type RuleInterface interface {
	//事件回调
	SetEventHandle(handel Conf.EventHandle)

	//获取当前算法标识
	GetIdentifier() Conf.LUCKY_DRAW_RULE_TYPE
	//设置奖项
	SetAward(award []*Conf.AwardItem)
	//执行抽奖
	Handle() (*Conf.AwardResult, *Error.Errno)
}
